package com.js.core.constants;

/**
 * @author ygl
 * @create 2018-10-26
 * @DESCRIPTION
 * 常量信息
 **/
public class CommonConstants {
    /**
     * 当前上下文中存储token
     */
    public static final String CONTEXT_KEY_USER_TOKEN = "currentUserToken";
    public static final String JWT_KEY_USER_ID = "userId";
    public static final String JWT_KEY_CLIENT_ID = "clientId";
    public static final String JWT_KEY_NAME = "userName";
    public static final String JWT_KEY_EXPIRE = "expire";
    /**
     * jwt用户信息
     */
    public static final String REDIS_USER_TOKEN = "jwt:user_";
    /**
     * jwt数据中的租户信息
     */
    public static final String JWT_KEY_TENANT_ID = "tenant";
    /**
     * jwt数据中的部门信息
     */
    public static final String JWT_KEY_DEPART_ID = "depart";
    /**
     * 当前上下文中存储租户ID
     */
    public static final String CONTEXT_KEY_TENANT_ID = "currentDepartId";
    /**
     * 当前上下文中存储登陆用户名
     */
    public static final String CONTEXT_KEY_USERNAME = "currentUserName";
    /**
     * 当前上下文中存储用户名称
     */
    public static final String CONTEXT_KEY_USER_NAME = "currentUser";
    /**
     * 当前上下文中存储用户ID
     */
    public static final String CONTEXT_KEY_USER_ID = "currentUserId";
    /**
     * 当前上下文中存储用户部门ID
     */
    public static final String CONTEXT_KEY_DEPART_ID = "currentDepartId";
}
